#include<stdio.h>
#include<string.h>
int main()
{
	char str[20];
	scanf_s("%s", str,20);

	int len = strlen(str);
	void con(char*,int);
	con(str,len);
	printf("%s\n", str);
	return 0;
}
void con(char* str,int len)
{
	for (char* beh = str + len - 1; str < beh; str++, beh--)
	{
		char tem;
		tem = *str;
		*str = *beh;
		*beh = tem;
	}
}